On the functional equation of certain Dirichlet series