Escape dollar signs when writing dataframe to latex

A dollar sign has special meaning in latex. When a dataframe contains a dollar sign (as part of a column label, for example), to_latex() spits out invalid latex. This commit escapes dollar signs.