Key names are already required be UTF-8 like everything else in mpv other than media file formats which support other encodings. stream_skip_bom is the wrong function for this, since it also skips UTF-16 BOM.