Thanks a lot. It's getting there.... Seems like we have to add the codes for all upper case letters as well though. As it is it just throws them away.
I also found a reply to this previous post. Not sure how to call this global, but it looks like a neat solution if that's all that's needed to make it work.