Update character and line break encoding.