Fix for ROOT<->PB file conversion.
Merge pull request #4564 from diguida/fix_fasthadd_encoding

Fix for ROOT<->PB file conversion.