def dump(self, fh, value, context=None):
		"""Attempt to transform and write a string-based foreign value to the given file-like object.
		
		Returns the length written.
		"""
		
		value = self.dumps(value)
		fh.write(value)
		return len(value)