Filename sanitization for Ruby