FIX: bugs in base64 decoding (endiness), 36b mask and int/long precision