avcodec: add a subcharenc mode that disables UTF-8 check