'Encodes a string to be placed in the project file output, mimicing
Xcode behavior.'

def _EncodeString(self, value):

    if (_unquoted.search(value) and (not _quoted.search(value))):
        return value
    return (('"' + _escaped.sub(self._EncodeTransform, value)) + '"')
