Ensure column names are valid identifiers. Closes #520