fix json encoding to use utf-8