added exception-safe wrappers for string conversion functions