Fix Hash Encode