updated pickle encoding

pickle file should work on windows now