added the ability to specify a charset for the source files