Fixed some issues with string conversion.