Mark std.file.readText as trusted

`std.file.readText` includes an unsafe cast from `void[]` to `string` but we can verify it can be trusted.

I used a nested trusted function instead of a direct lambda call because [Issue 10848 for dmd](https://github.com/D-Programming-Language/dmd/pull/2483) is still open.