Fix some things with URL mangling.