expose compat mode availability to ruby
Merge branch 'utf8-encoding-compat' into github