Workaround Chrome bug with encoding in graphs