Fix dump crash with safe=True and force_embed=True (#6)