President promises to repeal laws that imprison journalists