Deal with character encoding errors

Per #73.