fix for extended chars
Merge pull request #2 from bartoleo/master

fix for extended chars
thanks Leo