The previous fix broke an earlier fix, so I removed the toCString function, as it just had issues on certain platforms.