Remove file r/w, fix unicode error