fixes to an unicode decode error