encode instead of encode!