encode error message string into utf-8

 to deal with failing to parse bad encoded inputs. #36