Don't try to encode path if path is not present