Universal regularization for string field theory