Fixed #48 (added an encoding parameter for JDBC driver)