Encode the output URL