[FileReference] Correctly encode xml entities