[fix] Review pretty_print_dict to prevent encoding issue