SafeBuffer#gsub brake with block