ModeShape's Jsr283Encoder class does not properly escape the whitespace characters:
Section 3.2.2 of JSR-283 defines a local name as follows:
where the Char production at http://www.w3.org/TR/xml/#NT-Char is as follows:
Note that #x9 is the tab character, #xA is the line feed character, #xD is the carriage return character, and #x20 is the space character.
But ModeShape's Jsr283Encoder is not properly encoding/decoding the whitespace characters.
We will need to address whether this fix will be backward compatible. If not, we may need to provide a switch/repository setting that allows someone to use the older (incorrect) encoding/decoding.