os.environment must be bytes.  Closes #344