Merge pull request #1 from olensmar/master

add maven pom.xml and .gitignore
Removed dependency to java.nio, changed JDK to 1.6
Merge remote-tracking branch 'origin/master'
Added encoding support and did some general code cleanup