fix add_params_to_uri() fragment bug

add_params_to_uri() ovewrites existing fragment when fragment parameter = true
Merge pull request #280 from djpnewton/patch-1

fix add_params_to_uri() fragment bug