diff --git a/src/metabase/driver/postgres.clj b/src/metabase/driver/postgres.clj
index 142537787272a21b260a22fb05da404cf51baedc..a56c9772808d734999ae5c1376f7f7953df0ccf0 100644
--- a/src/metabase/driver/postgres.clj
+++ b/src/metabase/driver/postgres.clj
@@ -128,7 +128,7 @@
 (defmethod sql.qp/cast-temporal-byte [:postgres :Coercion/YYYYMMDDHHMMSSBytes->Temporal]
   [driver _coercion-strategy expr]
   (sql.qp/cast-temporal-string driver :Coercion/YYYYMMDDHHMMSSString->Temporal
-                               (hsql/call :convert_from expr "UTF8")))
+                               (hsql/call :convert_from expr (hx/literal "UTF8"))))
 
 (defn- date-trunc [unit expr] (hsql/call :date_trunc (hx/literal unit) (hx/->timestamp expr)))
 (defn- extract    [unit expr] (hsql/call :extract    unit              (hx/->timestamp expr)))