[win32] Replace index calls with strchr

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>