Export mg_url_{en,de}code for convenience