These functions pass a string without conversion (i.e., byte by byte), so you cannot set the character encoding. But it also means that you do not need it. You will have the same line on the other hand with the same encoding.
/ mb_convert_encoding().