Fixed an incorrect name in encode.c