typo fix
handle invalid UTF-8 in gems woohoo