@djagerif I found the bug in the program preview and fixed it. Thank you for telling me about Dan’s fix, it happened to be the exact same fix.
Speaking of bug fixes I also fixed the unicode issue to support Dan’s changes. I also fixed the bug in my code with commas in station names. This fix does require PHP >= 5.3.0. Hopefully, this doesn’t become an issue but if it is please let me know and I can write an alternative.