Add in ``encoding`` param to avoid Unicode ascii exception.

Encoding fix.

See Issue #350