correct handling of UTF-8 input

Release 0.14