fix bibtex escaping. @aurimasv for some reason $0 does not work in .replace - we need the parentheses and $1 even when matching the whole expression.