Added base36 encoding/decoding