How can I fix previous name misspelling in publications and how should I avoid them in future?
For fixing, I think the advice in the linked question is the way to go: contact the publisher and ask them to correct it.  This is what errata are for, and it's perfectly normal.

I think the harder question is what to do about the future.


On the one hand, the non-distinguishability of I and l are just going to keep causing problems (as can be seen from this very sentence!) and you rarely have control of fonts.
On the other hand, it's your personal identity at stake.  Do you really want to change your name for the sake of typography?


This is a problem that I see faced by a large number of researchers who don't have names that perfectly transliterate into English.  One of my French colleagues, for example, is very insistent on getting the accents correct on his name, while others just ignore it and let things fall to the lowest (anglicized) denominator.

You're going to need to make a decision based on your personal relationship with your identity.  If it's important to you, stick to your proper name and just know that you're going to need to be proactive in checking and correcting in every paper you deal with.  Fortunately, there's usually a proof stage for just this type of issue.  If you'd rather not bother, then by all means embrace the simple lower-case solution.
One way or another, though, you should settle on a decision by somewhere in the middle of graduate school.  Don't worry too much about some confusion in the early papers: if you make a career of research, the early papers will fade behind your later work; if you don't, it won't matter.