Made UrlRequest decoding optional with parameter

Update for issue #1247