TST: use default utf8 encoding when passing encoding to parser as Bytes (GH5141)

closes #5141