fix whitespace/encoding bug