fixed size detection

Without the explicit charset, PHP detects UTF BOM when there are none (like in the middle of files).
Merge pull request #193 from xrstf/patch-1

fixed size detection