[FileReference] Correctly encode xml entities

Solves CocoaPods/CocoaPods#2807

/cc @alloy 
Normally it would say master until the release is made.