Fix issue in Firefox if there's a space in the fragment on redirect