What OS?

Why do you need decode the entire stream to latin-1?
The town text that you are looking for - is in latin-1?
If so, why not just convert the text to Unicode (UTF-8) and search the stream as it is?

gg