Change hostname encoding.