Add charset option and default it to utf8.

The option exists in the Java library, but was not exposed through the Ruby interface. Also, YUI defaults to utf8 since version 2.4.5, so I made this default explicit in the Ruby wrapper as well.