Coerce `rails_env` to String

This allows `rails_env` to be a symbol, which was the case in earlier
realases (even though it was incidental).