Remove trailing whitespace
Fix reading quoted unicode characters in simple text data files
(reported by Gerrit Barrere)