corrected wrong charset definition

Fix for issue #958