Maybe you can make 2 files. The existing playlist file and a 1 byte file. Then do something like this:
Code:
cat 1byte.file > finalplaylist.file && cat playlist.file >> finalplaylist.file
I'm not sure if this works at all for your purpose as it may very well mess up your format again, but at least it's easy to try.
Here's the manual of the
GNU coreutils, maybe there's something in there that can be of use to you (tr for example might be of use for the translation part, although you seem to have a solution for that already)