Fix two issues with compiling, including encoding a string properly, and fixing strlen