Update loadfile.php

fixed detection of file encoding and worked around problem with function `mb_detect_encoding` described in `http://php.net/manual/de/function.mb-detect-encoding.php`
Update loadfile.php

changed TRUE to true.
Merge pull request #641 from j-ed/master

OC5 beta 2 - text editor does not open