Quantization of scalar fields in curved background, deformed Hopf algebra and entanglement