Make character encoding dynamic.