Sanitizing result string to avoid strange characters