[ruby mode] Fix interpretation of %{ modifiers

Issue #1701