Optimized pointer stringification.