open pickled data file in binary mode (fix #264)