Added escape() call to create_media() and create_metadata()