Converting file names to rails 3