Remove explict use of ASCII encoding

Replace the use of CFStringGetCString with kCFStringEncodingASCII specified
with CFStringGetFileSystemRepresentation which will ensure the correct
character encoding is used to conver the CFString into a NULL terminated
char array suitable for use with POSIX APIs.

(cherry picked from commit cc80294cc82a3b74984feb26701e8ae5761ea3bb)

Change-Id: Ie6e2027e59b49ca634c7308bcda7bb492d372f46
1 file changed