Make std.conv.to @safe for pointer to string conversion

The trusted lambda block contains the following unsafe instructions:
* use of core.stdc.string.strlen
* use of pointer slicing

Currently, this pull request does not work because of the bug in dmd (http://d.puremagic.com/issues/show_bug.cgi?id=10728).