MacOSXPlatform.java - Fix for ClassCastException: Object to String