Now compatible with Rails4 regex security.