Added rudimentary checks on ASP encoding (not in table mode for now)