Proof (universal property of free groups)
The homomorphism is unique since for any words $(s_1^{ε_1}, \ldots, s_n^{ε_n})$ (where $ε_i = \pm 1$), $$ \begin{align*} \varphi((s_1^{ε_1}, \ldots, s_n^{ε_n})) = \varphi((s_1)^{ε_1}) \ldots \varphi((s_n)^{ε_n}) = ϕ(s_1)^{ε_1} \ldotsϕ(s_n)^{ε_n} \end{align*} $$ is uniquely determined by $ϕ$.
Define $\varphi$ as above on not necessarily reduced words. If $(s_1^{ε_1}, \ldots, s_n^{ε_n})$ is not reduced, so containing say $(s, s\inv)$, then $ϕ(s_1)^{ε_1} \ldotsϕ(s_n)^{ε_n}$ contains $ϕ(s) \cdot ϕ(s)\inv = 1$. Thus elementary reduction preserves the value of $\varphi$. This shows that $\varphi$ is a homomorphism.