Fixed a few bugs in language handling. Added error message when Ansi->Unicode conversion in the current codepage loses information.
Prefixed exported functions by 'pp' to avoid namespace conflicts.