Move string conversion to application.rb