Escape method names before using them in a regex
Merge pull request #881 from stuporglue/master

Escape method definition names before using in regexp