Unicode: handle utf-8 encodings

Fixes #10