Adds url encoder and router redirect