Fix problem with ActiveSupport

Fix for my previous pull request.
Adds a require for active support modules.
Also, the regex pattern was fixed so that it will not display warnings regarding utf-8 regex comparison.