Quantization of a field theory with solitons