Add exception handling on URI parse, so the goliath app won't go die when there's invalid uri (in our case it contains []).