Merge pull request #125 from arokem/detect_lines_bugs

Does this help with py2.6-32 issues?
Deal with unicode nifti file strings (that sometimes happens).