Added support for file uploads and commands without specific encoding