fixes #6: make code utf8-proof