Better caption escaping in screenshots