[Bug 112339] Perl is unable to work with regex under UTF-8 locale with input readed from files