Encode buckets and keys using base16.