fix bug in seekstring

add \r to end markers for seekstring, used for example by mozilla
instead of \n