Changes to handle non-unicode data files.
Modified config with encodings.
Merge remote-tracking branch 'upstream/master'
Set default input to UTF-8 to prevent breaking the working
installations.
Changing the output encoding based on comments and refactoring the
encoding function to provide more robust output.
Fixing a offset issue when drawing with different zoom levels. Changing
a type conversion to use Math.round() instead of parseInt() for better
accuranse.
Updating the handing for unicode files into dev branch.
Merge branch 'master' of https://github.com/kiiski/rg2 into dev

Conflicts:
	rg2api.php
Resolve merge conflicts