fixed encoding issues with placeholder text function