DVobSubFilter/STS: Fix colormatrix guessing in case of non set

Used to default to BT.601, now defaults to BT.709 or BT.601
depending on the resolution.
STS: Use TrimRight() with the CStringW YCbCr matrix value

This removes trailing newline, space and tab characters.
While working around simple mistakes, this should not let pure
garbage past.
TextFile: Only fallback to ASCII/ANSI parsing if no UTF-8 BOM was present.

The presence of an UTF-8 BOM should indicate that the file actually is UTF-8,
and one invalid character should not be considered as a reason to think
otherwise.

Backport of MPC-HC commit 8bb9070
TextFile: Properly recover after an invalid UTF-8 character.

bValid was never properly set to TRUE after an invalid character,
which was no problem before because UTF-8 parsing was aborted. However,
if parsing is to simply skip invalid characters, this case needs to be
handled properly.

Backport of MPC-HC commit 962bbef
TextFile: Add support for U+10000-U+10FFFF UTF-8 encoded characters
RTS: Fixed handling of WrapStyle flag again

Fixes wrapstyle == 3

Backport of MPC-HC commit 89ab140