remove unnecessary spaces
Decode in UTF-8 by default