integer-based global_encoding metadata causes exception

global_encoding metadata is now stored as base64, but there is integer-based metadata out there than must still be consumed.