Update url_encode.c

Fix bug in result pre allocation - the size was badly computed. Per Jeff Turner' bug report