Catch broken UTF-8 to enable loading of buffers with broken lines
Merge pull request #329 from glowing-bear/invalidchars

Catch broken UTF-8 to enable loading of buffers with broken lines