Parser and datum names

This PR :

- adds support to encoding file when we want to read a prj file
- adds a test to read a prj file and fixes a bug on the datum name identification
- cleans up the code.