This bug was introduced with commit df2bfc9.
The problem is that the Uri is created without a UriKind, thus implicitly using UriKind.Absolute, which throws an exception for relative Uris.
Is there a compelling reason to replace the standard [non-buggy] serializer?