Removed incorrect Encode for Class.