Fixed raw hash to string conversion