Fix rails breaking gsub semantics in SafeBuffer
Fix rails breaking gsub semantics in SafeBuffer

It causes ruby to loose track of ruby special variables that store match
data and captured groups etc. because an additional method frame is
created.

The downside of this fix is that the name will become html unsafe after
calling to_str first.

tuskenraiders/degu