I would change the method of making items out of nicks; instead of using plain $nick, I'd use
/hadd <table> $replace($encode($nick,m),=,.) <data>. Then, the saved .ini would look like
dGVzdFtuaWNrXQ..=3
YW5vdGhlcnRlc3Rbbmlja10.=5
....
To get the nick back, just use $decode($replace(<item>,.,=),m)
The $replace()'s are necessary because a MIME-encode string often contains "=" characters, which would conflict with the ini = (separator between item and data). It can never contain a dot or any other non-alphanumeric character though, thus will never cause problems in .inis.