better implementation of column escaping