Fix 1.8.7 problem with TOML

This PR serves as a discussion place for fixing the 1.8.7 incompatibility with
the `toml` gem.