Fixed the reference encoder

SD-224 : Implement REST API backend for Avatar upload

Fixed the reference encoder when a property is returned.