add 64 encoding function to slow helper