title: Ruby Regex Error: incompatible encoding regexp match (ASCII-8BIT regexp with UTF-8 string)
body: <p>I'm getting two errors, both revolving around encoding and both related.</p>
  
  <p>The first error (technically, a warning) I get when starting up WEBrick:</p>
  
  <pre><code>/Users/USERNAME/example/config/initializers/bb-ruby.rb:54: warning: invalid Unicode Property \P: /\:\-?\P/
  </code></pre>
  
  <p>The line it's referring to is: <code>/\:\-?\P/,</code></p>
  
  <p>It's just a bit of regex, ultimately part of this block:</p>
  
  <pre><code>@@tags['Razzing'] = [
    /\:\-?\P/,
    '&lt;img src="/assets/emoticons/razzing.png"&gt;',
    'Razzing',
    ':P',
    :razzing]
  </code></pre>
  
  <p>Then, I also get the following error when parsing some strings (presumably due to this same line)...</p>
  
  <pre><code>Encoding::CompatibilityError
  incompatible encoding regexp match (ASCII-8BIT regexp with UTF-8 string)
  </code></pre>
  
  <p>I'm running Ruby 1.9.2 and Rails 3.2.1.</p>