fix utf-8 codepage
Merge pull request #1663 from h2so5/fix-utf8-codepage

fix utf8 codepage
add enable_debug to build_config.rb
add callback invocation from OP_DEBUG