Closes #1536 Unicode decode error while indexing a file through UI
Closes #1536 Unicode decode error while indexing a file through UI HACK