XWIKI-9320: REST objects api wrongly encodes property values
* Improvent over the applied pull request.