Changed encoding closes #1788