improved character set handling
More locales
factored out the suffix handling
remove debug line
Make character sets locale sensitive
os.setlocale() can take two params