Fix invalid regex encoding

Add regexp encoding option.
https://github.com/google/signet/pull/8 is not enough, so https://travis-ci.org/google/google-api-ruby-client/jobs/4052360 is still syntax error in ruby2.0.0.