Include encoding functions