decode json as utf-8 before parsing