Fix unicode issues where python internally converts unicode to bytes.