fix pickle unicode problem