[FileReference] Correctly encode xml entities

Solves CocoaPods/CocoaPods#2807

/cc @alloy 
Was not sure about this? Maybe it should just say `master` for now"