Slow, messy version of delta 32 encoding.