Correctly return charset in JSON response