Clean up duplicate string conversion functions