[PATCH] overflow checking for MultiByteToWideChar/WideCharToMultiByte