Replace space by "%20"

* Written in language C
* Ref: http://ac.jobdu.com/problem.php?pid=1510