Fix deprecation
Add UTF-8 marker
Reorganize imports (some old not valid imports)
Merge pull request #2 from hernic/master

Fix deprecation

Replace the depreciated getPartAsString() with getPartAsStringFailsafe()
Set UTF-8 source encoding
Set Java source/target to 1.6