fixes #22 with setlocale to the rescue