Properly deal with escaped characters in codes and descriptions