if you had a ref that included a colon, the text before the colon was
treated as the scheme and the text after the colon as a path
the unescape_uri method was actually only parsing the path of the
uri (therefore anything before a colon was being stripped when passed
to unescape_uri)
Turns out that before:
Fixes #319