made sure advice is properly encoded