It fixed an error occurred in ST2 for OSX.

Error log was below..
I think it's a defining order issue.

Exception in thread Thread-24:
Traceback (most recent call last):
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 532, in __bootstrap_inner
    self.run()
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threading.py", line 484, in run
    self.__target(*self.__args, **self.__kwargs)
  File "./ConvertToUTF8.py", line 191, in <lambda>
NameError: global name 'detect' is not defined