Sanitize risk form before bypassing autoescaper