fix unicode issue with numpy