removed redundant isEncoded validation

many thanks to John