Make XML Encoder work with URI