URL decoding outputs empty string instead of raw text upon failure

Description

When an URL in a post fails to decode, the URL is outputted as an empty string instead of raw text.

Reproduction steps:
Type: "test.test/%%" into a text box and submit

Observed: An empty post/comment
Expected: "test.test/%%"

Possible fix: Output the raw string when URL decoding fails

QA Test Steps

None

Mana

None

Assignee

Harrison Healey

QA Assignee

None

Reporter

David Lu

Epic Link

None

Fix versions

None

Mattermost Team

None

Sprint

None

Labels

None

QA Testing Areas

None

GitHub Issue

None

Components

None

Severity

None
Configure