replace unicode characters with entity
set default_external for ruby 1.9