OK, I hereby confirm that removing all the NULL characters from the /opt/retropie/configs/all/emulators.cfg file fixes the issue! Thanks!