Add validation of legal characters for fieldnames