2.0.0 compatibility

There were an issue with Ruby 2.0.0 throwing an "invalid multibyte escape SyntaxError" due to the use of regexp literals in tb. I set the regexp flag to "no encoding" as a quick hack.