Fix encoding issue with hostname and CherryPy.