Replaced hex encoding with base64

Makes your constant strings shorter and solves compatibility issues with
older PHP versions.