URLSource and FileSource support charsetName argument

Previously URLSource and FileSource used the default charset. This commit enables an additional constructor argument to specify the charset to use when reading the source.