Report question

Question: How to detect illegal UTF-8 byte sequences to replace them in java inputstream?