Fixed more bugs with the character encoding. Now it all should work.