Fix unicode exception that prevents in open/save functions