Fixes #106: Fixed convertToString function