'Return this L{FilePath} in L{unicode}-mode.
@param encoding: The encoding to use if coercing to L{unicode}. If none
is given, L{sys.getfilesystemencoding} is used.
@return: L{unicode} mode L{FilePath}'

def asTextMode(self, encoding=None):

    if (type(self.path) == bytes):
        return self.clonePath(self._asTextPath(encoding=encoding))
    return self
