Add fragment support to format-url and parse-url