why new variable? why not simple `file_url = URI(file_url) unless file_url.is_a?(URI)` and later use it?