Fixed compile in encode.h