Sanitize column names for named_tuple_factory

Fixes PYTHON-31