added test (#13)
fixed charset configuration (#13)
added support for persistent connection option (#13)