allow Ptr{Int8} to work with ByteString, since it might be Ptr{Cchar}. closes #2603