Fix broken parsing of multi-byte unicode character (fixes #175, #173)