[parser] Safely output multiline strings