attempt to fix unicode handling