Refixed the TypeEncoder Exceptions