Added support for setting the connection encoding and added tests.
Bumped the package version to 0.0.5.