* handle invalid utf8; fixes #211 (hopefully)