Fixed bug when converting files on OS X.