Fixed Itoa64 uses

Fixed a problem due to moving encode64 to a global function