improved base16 scheme