Fix Legacy URL Parse

Fix legacy url parse

- Use `preg_replace` to only get `-/` to avoid dashes further down

http://www.concrete5.org/developers/bugs/5-6-1-2/path-items-cant-end-in-dash/