Use b"" instead of b()

Closes #1900 and #1878