Fixed character encoding issue in #971