Fix for the ActiveSupport::SafeBuffer#gsub issue

(Same problem as Issue #93)