Instead of decoding the path, encode the translated key.