Parser now writes character encoding in files.