I made a PHP script that batch converts both ways.
http://www.joe.to/moo/sid_convert.php
Source code attached.
you don't need to clean the input, you can paste your admins ini and have the output be the same as your input except for the links
Old attachment view count: 2814 views (1747 + 467 + 600)