filter out invalid characters on content download