Integral periods for modular forms