Merge pull request #4250 from leoetlino/hle-patch-fix HLE_OS: Minor fixes (function patching, output encoding)