Add to_s to Rails.version

Due to rails/rails#8501.

Change-Id: I3a5580e12a9f4bc013bb98db9aa6d8c3e11bf0c5