Convert bytestring from command line to unicode, using default file system encoding

def commandline_text(bytestring):
    'Convert bytestring from command line to unicode, using default file system encoding'
    if six.PY3:
        return bytestring
    unicode_string = bytestring.decode(sys.getfilesystemencoding())
    return unicode_string