Don't use #encode for nil