Fix find replace crashes/regex stuff