fix gh-#4. `CmdAction` added parameters `encoding` and `decode_error`