Fix code escaping in Pod RT#51735

This just applies the patch from RT ticket,

@haoess++ for submitting it!