Use StringUtil#urlEncode() instead of URLEncode#encode().