Fix newlines
Fix LP:1310967. Decode internal content if not UTF-8.