Added UTF-8 conversion utilities.
Made configuration initialization also determine current working directory and user directory. Other minor fixes.