fixed hex encoding