fixed some unicode handling

bad formatting causing build failure: TabError: inconsistent use of tabs and spaces in indentation