Added validation for tap encoding

With the potential to be passed encoding misnomer.