do not read non ASCII files with utf8 buffer

[fixes #398]
Merge pull request #399 from jenius/sjs/image-fix

do not read non ASCII files with utf8 buffer