Fixed compilation error on Android

Without the explicit cast call to std::string::insert(size_t, size_t, char)
becomes ambiguous.
Merge pull request #1055 from rgngl/androidFix

Fixed compilation error on Android