def __EncodeIfNeeded(self, value):
    if isinstance(value, unicode):
      return value.encode('utf8')
    else:
      return value
Convert four characters from a data block into 3 'bytes'.
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/ext/gql/__init__.py/GQL.__EncodeIfNeeded--crossover with--dataset/ETHPy150Open jjhelmus/nmrglue/nmrglue/fileio/simpson.py/chars2bytes