try catch for urlDecode. Fixes #298.