well I found the cause and it bothers me. I see no reason why '-' isn't escaped when using preg_quote

To fix: open ubbthreads.inc.php

Find: (twice)

Code
$string = preg_quote($string,'/');

Replace with
Code
$string = preg_quote($string,'/-');