pd.HDFStore.select errors out when query contains a single quote
replacing single quotes with `\\'`seems to work.

This is with pandas 0.11 with pd.Term, seems like pandas is moving to string queries rather than pd.Term in the future?
