Start adding UTF-8 support: first step

Add an internal function that guesses the encoding of a string:
ASCII, UTF-8, or CP437.
Add a test program and 3 test cases, one for each encoding.

--HG--
branch : HEAD
12 files changed