Removing extraneous characters in rake task