You need to use Unix encoding (with ANSI characters, to be safe). Notepad++ can do this, or if you make the file on your N900 it should be saved with Unix encoding. I'm 99.9% sure this script should work fine but I haven't tested it on Fremantle so I can't be totally certain. Edit: just found a problem with the code. Working to fix. Update: Fixed.