Moved URL decode up to work with curl too