Ensure post id is string.