Patch for [SeeRM #8315]
Fix calls to fail_with from mixins
[FixRM #8316] - Escape characters correctly

dots need to be escaped
Land #2256, @wchen-r7's patch for [FixRM #8316]
Land #2254 - Fix TypeError can't convert nil into String

This fixes TypeError can't convert nil into String errors.
Land #2255 - Fix fail_with()