Fix app_read to return string even if not # terminated (bug #1769)