Preventing Injection Attacks Through Proper Output Encoding