Fix fact extraction encoding error

Without this change, the following error may occur when requesting a
catalog:

`Error: Could not intern from pson: source '%7B%22name%22%3A%22m' not in
PSON!`
Fix RSpec deprecation warning