fixes to an unicode decode error #2