Added Charater extension

Implemented toInt() method for Charaters and added test for it.
Merge pull request #50 from cennydavidsson/master

Added Charater extension