Fix bug in d3 tab character parsing