Closes #1 and #2

1. added support for encoding="utf-8" for xml files
2. added support for spaces around "=" and near the encoding