Fixed a bug when pickling unicode