solved the unicode encode/ decode problem