Adds charset encoding support for command execution

Adds possibility to set character encoding for remote command execution. This may fix garbled characters due to difference of locale between server-side (LANG or LC_ALL) and client-side (file.encoding).