Use common string allocation and freeing functions where applicable.