Doesn't solve the problem since it assumes that a registered formatter is in use, which isn't guaranteed, especially in bundled projects which auto require their bundle (Rails).