Fixing possible issues with unpickling Unicode strings.