Encode true and false in key