Made charset selectable on init.

I needed to use a different charset in my connection so I added an option to specify charset in a constructor. By default it's set to *utf-8* so backward compatibility is preserved.