Add support to convert nbsp to spaces