Bash >= 5.2 changed the export command to output values using $' escaping when they contain special characters. Fixes #5629