Contributed to Phoenix Framework
https://github.com/phoenixframework/phoenix/pull/4309